#include "Vertex.h"
#include "Graphics.h"	

//D3D10_INPUT_ELEMENT_DESC* VertexCol::VertexColElements = 0;

void InitVertexDeclarations()
{
//	//===============================================================
//	// VertexPos
//	static D3D10_INPUT_ELEMENT_DESC VertexPosElements[] = 
//	{
//		{"POSITION", 0,  DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D10_INPUT_PER_VERTEX_DATA,0}
//	};	
//
//
//	//VertexPos::VertexPosElements = VertexPosElements;
//	///VertexPosElements = VertexPosElements;
//
//	// obtain a pointer to an IDirect3DVertexDeclaration9 interface, 
//	// which represents a vertex declaration
//	//TheGraphics::Instance()->GetD3DDevice()->CreateInputLayout(VertexPosElements,1,);
//
//	////===============================================================
//	//// VertexCol

	//static D3D10_INPUT_ELEMENT_DESC VertexColElements[] = 
	//{
	//	{"POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D10_INPUT_PER_VERTEX_DATA,0},
	//	{"COLOR", 0, DXGI_FORMAT_R32G32B32A32_FLOAT, 0, 12, D3D10_INPUT_PER_VERTEX_DATA, 0}
	//};	

	//VertexCol::VertexColElements = VertexColElements;
	//TheD3DObj::Instance()->GetD3DDevice()->CreateVertexDeclaration(VertexColElements, &VertexCol::Decl);
//
//	////===============================================================
//	//// VertexPN
//
//	//D3DVERTEXELEMENT9 VertexPNElements[] =
//	//{
//	//	{0, 0,  D3DDECLTYPE_FLOAT3, D3DDECLMETHOD_DEFAULT,D3DDECLUSAGE_POSITION, 0},
//	//	{0, 12, D3DDECLTYPE_FLOAT3, D3DDECLMETHOD_DEFAULT,D3DDECLUSAGE_NORMAL, 0},
//	//	D3DDECL_END()
//	//};
//	//TheD3DObj::Instance()->GetD3DDevice()->CreateVertexDeclaration(VertexPNElements,&VertexPN::Decl);
//
//	////===============================================================
//	//// Vertex PNT
//	//D3DVERTEXELEMENT9 VertexPNTElements[] =
//	//{
//	//	{0, 0,  D3DDECLTYPE_FLOAT3, D3DDECLMETHOD_DEFAULT,D3DDECLUSAGE_POSITION, 0},
//	//	{0, 12, D3DDECLTYPE_FLOAT3, D3DDECLMETHOD_DEFAULT,D3DDECLUSAGE_NORMAL, 0},
//	//	{0, 24, D3DDECLTYPE_FLOAT2, D3DDECLMETHOD_DEFAULT,D3DDECLUSAGE_TEXCOORD, 0},
//	//	D3DDECL_END()
//	//};
//
//	//TheD3DObj::Instance()->GetD3DDevice()->CreateVertexDeclaration(VertexPNTElements,&VertexPNT::Decl);
}